<template>
  <view class="hot-activities card">
    <view class="section-title">
      <text class="title-text">热门活动</text>
    </view>
    <view class="activity-list">
      <view class="activity-item">
        <text class="rank">1</text>
        <view class="activity-icon">
          <text class="icon-text">🚶</text>
        </view>
        <text class="activity-name">徒步</text>
        <view class="activity-count">
          <text class="count-text">30213人</text>
          <text class="trend-icon">↗</text>
        </view>
      </view>
      <view class="activity-item">
        <text class="rank">2</text>
        <view class="activity-icon">
          <text class="icon-text">🎾</text>
        </view>
        <text class="activity-name">网球</text>
        <view class="activity-count">
          <text class="count-text">25209人</text>
          <text class="trend-icon">↗</text>
        </view>
      </view>
      <view class="activity-item">
        <text class="rank">3</text>
        <view class="activity-icon">
          <text class="icon-text">🏃</text>
        </view>
        <text class="activity-name">综合</text>
        <view class="activity-count">
          <text class="count-text">17910人</text>
          <text class="trend-icon">↗</text>
        </view>
      </view>
    </view>
  </view>
</template>

<script setup>
// 热门活动组件逻辑
</script>

<style scoped>
.card {
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  padding: 16px;
}

.hot-activities {
  flex: 0.45;
  margin-right: 8px;
}

.section-title {
  font-size: 18px;
  font-weight: bold;
  margin-bottom: 15px;
  color: #333;
}

.title-text {
  text-shadow: 1px 1px 0 #3de6e6;
}

.activity-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.activity-item {
  display: flex;
  align-items: center;
  padding: 8px 0;
}

.rank {
  font-size: 18px;
  font-weight: bold;
  margin-right: 15px;
  width: 20px;
  color: #333;
}

.activity-icon {
  margin-right: 12px;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.icon-text {
  font-size: 20px;
}

.activity-name {
  font-size: 16px;
  flex: 1;
  color: #333;
  font-weight: 500;
}

.activity-count {
  display: flex;
  align-items: center;
  font-size: 14px;
}

.count-text {
  color: #666;
  margin-right: 4px;
}

.trend-icon {
  color: #ff4757;
  font-size: 16px;
  font-weight: bold;
}
</style> 